package com.yunst.execute.impl;

import com.yunst.execute.ExecuteOperation;

import java.awt.*;
import java.awt.event.KeyEvent;
import java.awt.image.BufferedImage;

/**
 * @author yunst
 * @date 2022/12/29
 */
public class ClickExecute implements ExecuteOperation<Integer> {


    @Override
    public Integer execute() throws AWTException {
        return null;
    }

    public static void click(Point point) {
        robot.mouseMove((int) point.getX(), (int) point.getY());
        robot.mousePress(KeyEvent.BUTTON1_DOWN_MASK);
        robot.mouseRelease(KeyEvent.BUTTON1_DOWN_MASK);

    }
}
